﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharpbasics
{
    class OverrideTest
    {
        public static void test()
        {
            classC c = new classC();
            c.method1();
        }
    }

    class classA
    {
        public virtual void method1() { }
    }

    class classB : classA
    {
        public override void method1() { }
    }
    class classC : classB
    {
        public override void method1() { }
    }
}
